import type { AddAddressItem } from '@/types/address'
import { http } from '@/utils/request'


export const addMemberAddress = (data:AddAddressItem)=>{
    return http({
        url:'/member/address',
        method:'POST',
        data
    })
}


export const getMemberAddressAPI = () => {
    return http<AddAddressItem[]>({
      url: '/member/address',
      method: 'GET'
    })
  }